<script setup lang="ts">
import {useRoute}  from "vue-router";

let route = useRoute();

</script>

<template>
  <h1>我是Hello2</h1>

  {{$route.query.id}} ===>  {{$route.query.name}}


  <div>
  {{route.query.id}} ===>  {{route.query.name}}
  </div>
</template>

<style scoped>

</style>